package com.imooc;

public class Test5 {
	private String name = "爱慕课";
	
	public void show() {
		class MInner {
			int score = 78;
			public int getScore() {
				return score + 10;
			}
		}
		MInner mi = new MInner();
		int newScore = mi.getScore();
		System.out.println("name:" + name + "\n加分后成绩：" + newScore);
	}
	
	public static void main(String[] args) {
		Test5 t = new Test5();
		t.show();
	}
}
